//
//  RootViewController.h
//  FGallery
//
//  Created by Grant Davis on 1/6/11.
//  Copyright 2011 Grant Davis Interactive, LLC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FGalleryViewController.h"
#import "PublicMethodEngine.h"

#import "HPGrowingTextView.h"

#import "CJSONDeserializer.h"
#import "CJSONSerializer.h"

@protocol PhotoBookDelegate;

@interface PhotoBookViewController : UIViewController <FGalleryViewControllerDelegate> {
	NSArray *localCaptions;
    NSMutableArray *localImages;
    
    NSMutableArray *networkCaptions;
    NSMutableArray *networkImages;
    
    NSMutableArray *dateArray;
    
    
    
	 FGalleryViewController *browseGallery;
    
    NSMutableArray *imageURLArray;
    
    
     
    //GRowing TextView 
    UIView *containerBgView;
    UIView *containerView;
    HPGrowingTextView *textView;

    
    BOOL isLocalImage;
    
    //起始页
    int curPage;
    
    //本地图片数量
    int localImageCount;
    
    NSString *albumListBaseUrl;
    
    BOOL isMonthlyCoverModify;
    NSInteger monthlyCoverPhotoId;
    
}


@property (assign) id<PhotoBookDelegate> delegate; 

@property (nonatomic,retain)  NSMutableArray *networkImages;

@property (nonatomic,retain)  NSMutableArray *imageURLArray;


-(id)initWithImages:(NSArray *)images;

- (id)initWithImages:(NSArray *)images caption:(NSArray *)caption  dateArray:(NSArray *)dates   page:(int)page localImageNum:(int)localImageNum;


- (id)initWithLocalImages:(NSArray *)images caption:(NSArray *)caption page:(int)page;



- (void)loadBrowseView;


-(NSMutableArray *)getImages;



@end



@protocol PhotoBookDelegate <NSObject>
@optional 

-(void)removeNavigate;
-(NSMutableArray *)getImages;

@end
